package com.zjt.pictureselector.holder;

import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.zjt.pictureselector.R;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2017</p>
 * <P>Company: </p>
 *
 * @author zhengjianting
 * @time 2017/11/9 0009 下午 3:42
 */

public class PictureHolder extends RecyclerView.ViewHolder {

    private ImageView imageView;
    private ImageView imgSelect;
    private ImageView videoPlay;
    private TextView videoDuration;

    public PictureHolder(View itemView) {
        super(itemView);
        imageView = (ImageView) itemView.findViewById(R.id.iv_image);
        imgSelect = (ImageView) itemView.findViewById(R.id.iv_select);
        videoPlay = (ImageView) itemView.findViewById(R.id.iv_video_play);
        videoDuration = (TextView) itemView.findViewById(R.id.tv_video_duration);
    }

    public PictureHolder(LayoutInflater inflater, ViewGroup parent) {
        this(inflater.inflate(R.layout.item_picture_holder, parent, false));
    }

    public ImageView getImageView() {
        return imageView;
    }

    public void setImageView(ImageView imageView) {
        this.imageView = imageView;
    }

    public ImageView getImgSelect() {
        return imgSelect;
    }

    public void setImgSelect(ImageView imgSelect) {
        this.imgSelect = imgSelect;
    }

    public ImageView getVideoPlay() {
        return videoPlay;
    }

    public void setVideoPlay(ImageView videoPlay) {
        this.videoPlay = videoPlay;
    }

    public TextView getVideoDuration() {
        return videoDuration;
    }

    public void setVideoDuration(TextView videoDuration) {
        this.videoDuration = videoDuration;
    }
}
